package business

import (
	"github.com/gin-gonic/gin"
	api "ruoyi-go/app/admin/api/business"
	"ruoyi-go/utils/jwt"
)

func InitC5ParkAreaInfo(e *gin.Engine) {
	// 路由权限相关
	v2 := e.Group("business")
	{
		auth := v2.Group("")
		auth.Use(jwt.JWTAuthMiddleware())
		{
			// 查询
            auth.GET("/parkAreaInfo/list", api.GetPageLimitC5ParkAreaInfo)
            // 添加
            auth.POST("/parkAreaInfo", api.CreateC5ParkAreaInfo)
            // 修改
            auth.PUT("/parkAreaInfo", api.UpdateC5ParkAreaInfo)
            // 删除
            auth.DELETE("/parkAreaInfo/:ids", api.DeleteC5ParkAreaInfoByIds)
            // 获取详情
            auth.GET("/parkAreaInfo/:id", api.GetC5ParkAreaInfo)
		}
	}
}
